# conding:utf-8
from automationreport import app
from .worker import update_data, send_report


@app.task
def send_email_task(runtime, case_amount, pass_case_count, not_run_case, event_id):
    return send_report.SendReport.sender_email(runtime, case_amount, pass_case_count, not_run_case, event_id)


@app.task
def timing_update_data():
    return update_data.UpdateData().update_case_count()
